/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;

namespace JDCloudSDK.Monitor.Model
{

    /// <summary>
    ///  createPanelSpec
    /// </summary>
    public class CreatePanelSpec
    {

        ///<summary>
        /// 该panel所属dashboard的uid
        ///Required:true
        ///</summary>
        [Required]
        public string DashboardUid{ get; set; }
        ///<summary>
        /// 该panel所属维度
        ///</summary>
        public string Dimension{ get; set; }
        ///<summary>
        /// 该panel包含的metric
        ///Required:true
        ///</summary>
        [Required]
        public List<PanelMetricForCreate> PanelMetrics{ get; set; }
        ///<summary>
        /// 该panel的名字
        ///</summary>
        public string PanelName{ get; set; }
        ///<summary>
        /// 资源id列表,与标签服务互斥,且资源id列表与标签服务列表至少传一个
        ///</summary>
        public List<PanelResource> PanelResources{ get; set; }
        ///<summary>
        /// 标签服务列表,与资源id列表互斥,且资源id列表与标签服务列表至少传一个
        ///</summary>
        public List<PanelTagResource> PanelTagResources{ get; set; }
        ///<summary>
        /// topN的数量，图表类型为3(topN表格)时必填
        ///</summary>
        public long? PanelTopNum{ get; set; }
        ///<summary>
        /// 该panel的类型，1-折线图(明细);2-折线图(汇总);3-topN表格
        ///Required:true
        ///</summary>
        [Required]
        public long PanelType{ get; set; }
        ///<summary>
        /// 该panel所属产品
        ///Required:true
        ///</summary>
        [Required]
        public string Product{ get; set; }
        ///<summary>
        /// 依据tag过滤(维度)
        ///</summary>
        public List<TagFilter> Tags{ get; set; }
    }
}
